package com.main.ssm_aop_xml.springXml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		 ApplicationContext ac = new ClassPathXmlApplicationContext("com/org/javabody/ssm_aop_xml/applicationContext-xml.xml");
		 Person per = (Person)ac.getBean("person");
		 String flag = per.eat("true");
		 System.out.println(flag);
		 Duck duck = (Duck)ac.getBean("duck");
		 flag = duck.fly("true");
		 System.out.println(flag);
		 flag = duck.swim("true");
		 System.out.println(flag);
	}
}
